package com.gusha.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import com.gusha.model.SysAdmin;


/**
 * @Created：2018-10-26 15:18:16
 * @Author LightSound的代码生成器
 * @Description:SysAdminDao接口
 */
@Repository
public interface SysAdminDao extends JpaRepository<SysAdmin,BigInteger>,JpaSpecificationExecutor<SysAdmin> {

	SysAdmin findByUserNameAndPassword(String userName, String md5Code);

	void deleteAllByRoleId(BigInteger id);


}
